<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WiFi Logger component: include/websocket_handler.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WiFi Logger component
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">WiFi Logger component, uses wifi to output logs</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">websocket_handler.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br />
<code>#include &lt;string.h&gt;</code><br />
<code>#include &quot;esp_wifi.h&quot;</code><br />
<code>#include &quot;esp_system.h&quot;</code><br />
<code>#include &quot;nvs_flash.h&quot;</code><br />
<code>#include &quot;esp_event.h&quot;</code><br />
<code>#include &quot;freertos/FreeRTOS.h&quot;</code><br />
<code>#include &quot;freertos/task.h&quot;</code><br />
<code>#include &quot;freertos/event_groups.h&quot;</code><br />
<code>#include &quot;esp_log.h&quot;</code><br />
<code>#include &quot;esp_websocket_client.h&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for websocket_handler.h:</div>
<div class="dyncontent">
<div class="center"><img src="websocket__handler_8h__incl.png" border="0" usemap="#include_2websocket__handler_8h" alt=""/></div>
<map name="include_2websocket__handler_8h" id="include_2websocket__handler_8h">
</map>
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="websocket__handler_8h__dep__incl.png" border="0" usemap="#include_2websocket__handler_8hdep" alt=""/></div>
<map name="include_2websocket__handler_8hdep" id="include_2websocket__handler_8hdep">
<area shape="rect" id="node2" href="wifi__logger_8h.html" title="include/wifi_logger.h" alt="" coords="31,80,171,107"/>
<area shape="rect" id="node3" href="wifi__logger_8c.html" title="wifi_logger.c" alt="" coords="53,155,148,181"/>
</map>
</div>
</div>
<p><a href="websocket__handler_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ab7c473e5d2cc4d0f11e0d1d7167d7435"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="websocket__handler_8h.html#ab7c473e5d2cc4d0f11e0d1d7167d7435">WEBSOCKET_HOST_URI</a>&#160;&#160;&#160;CONFIG_SERVER_WEBSOCKET_URI</td></tr>
<tr class="separator:ab7c473e5d2cc4d0f11e0d1d7167d7435"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a7ff5b483eff77ac741ab8cb1121cb0bd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="websocket__handler_8h.html#a7ff5b483eff77ac741ab8cb1121cb0bd">websocket_event_handler</a> (void *handler_args, esp_event_base_t base, int32_t event_id, void *event_data)</td></tr>
<tr class="separator:a7ff5b483eff77ac741ab8cb1121cb0bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6bc94cb0c5e4f8a088336cb5c686d10a"><td class="memItemLeft" align="right" valign="top">esp_websocket_client_handle_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="websocket__handler_8h.html#a6bc94cb0c5e4f8a088336cb5c686d10a">websocket_network_manager</a> ()</td></tr>
<tr class="separator:a6bc94cb0c5e4f8a088336cb5c686d10a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89512bd5b14fe7261ded81ea6267d8a4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="websocket__handler_8h.html#a89512bd5b14fe7261ded81ea6267d8a4">websocket_send_data</a> (esp_websocket_client_handle_t network_handle, char *payload)</td></tr>
<tr class="separator:a89512bd5b14fe7261ded81ea6267d8a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a101e4e261ef537cf39ec93843b135eeb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="websocket__handler_8h.html#a101e4e261ef537cf39ec93843b135eeb">websocket_close_network_manager</a> (esp_websocket_client_handle_t network_handle)</td></tr>
<tr class="separator:a101e4e261ef537cf39ec93843b135eeb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="ab7c473e5d2cc4d0f11e0d1d7167d7435"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab7c473e5d2cc4d0f11e0d1d7167d7435">&#9670;&nbsp;</a></span>WEBSOCKET_HOST_URI</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define WEBSOCKET_HOST_URI&#160;&#160;&#160;CONFIG_SERVER_WEBSOCKET_URI</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a101e4e261ef537cf39ec93843b135eeb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a101e4e261ef537cf39ec93843b135eeb">&#9670;&nbsp;</a></span>websocket_close_network_manager()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void websocket_close_network_manager </td>
          <td>(</td>
          <td class="paramtype">esp_websocket_client_handle_t&#160;</td>
          <td class="paramname"><em>network_handle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a7ff5b483eff77ac741ab8cb1121cb0bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7ff5b483eff77ac741ab8cb1121cb0bd">&#9670;&nbsp;</a></span>websocket_event_handler()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void websocket_event_handler </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>handler_args</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">esp_event_base_t&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>event_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>event_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a6bc94cb0c5e4f8a088336cb5c686d10a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6bc94cb0c5e4f8a088336cb5c686d10a">&#9670;&nbsp;</a></span>websocket_network_manager()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">esp_websocket_client_handle_t websocket_network_manager </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a89512bd5b14fe7261ded81ea6267d8a4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a89512bd5b14fe7261ded81ea6267d8a4">&#9670;&nbsp;</a></span>websocket_send_data()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int websocket_send_data </td>
          <td>(</td>
          <td class="paramtype">esp_websocket_client_handle_t&#160;</td>
          <td class="paramname"><em>network_handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>payload</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
